// import { Suspense } from "react";
import { Navigate } from "react-router-dom";
import Index from "../components/Index.jsx";
import Login from "../components/Login.jsx";
import Notfound from "../components/Notfound.jsx";
import Register from "../components/Register";

import fpRouter from '../views/FpRouter/index'
import lhqRouter from '../views/LhqRouter/index'
import lkRouter from '../views/LkRouter/index'
import lmdRouter from '../views/LmdRouter/index'
import zwRouter from '../views/ZwRouter/index'


var router = [
    {
        path: '/index',
        element: <Index />,
        children: [
            ...fpRouter,
            ...lhqRouter,
            ...lkRouter,
            ...lmdRouter,
            ...zwRouter,
            {
                path: '/index',
                element: <Navigate to='/index/systemindex' />
            },
        ]
    },
    {

        path:'/register',
        element: <Register />
    },
    {
        path:'/login',
        element: <Login />
    },
    {
    path:'/',
    element:    <Navigate to='/register' />
    },
   
    {
        path: '*',
        element: <Notfound />
    },
]

export default router;